﻿<?php
require_once(dirname(__FILE__)."/../../libs/dbclass/dbconnect.php");

$id=$_GET['id'];
if($id==''){
	echo "<script>alert('该留言不存在');</script>";
	die;
}
$sql="select * from  meseage where id=$id ";
$msg=$db->dvstr($sql);

if(count($msg)<=0){
	echo "<script>alert('该留言不存在');</script>";
	die;
}

$sql2="update meseage set status='2' where id=$id ";  //更新状态
$db->cmd ($sql2);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用户留言</title>
<link rel="stylesheet" type="text/css" href="../../plug/swfupload/uploadify.css">
<link href="../css/css.css" rel="stylesheet" type="text/css" />
</head>
<body style="background:#fff"> 
        <div style="margin: 20px auto; width:500px;"> 
              <table border="1px" bordercolor="#ccc" cellspacing="0px" style="border-collapse:collapse" width="100%">
             <tr bgcolor="#eee">
                <td  height="40" align="center" colspan="2"><h4><?php echo $msg["name"]?>留言详情</h4></td>
              </tr>  
            	
              <tr>
                <td width="20%" height="40" align="center">名称：</td>
                <td height="40" style="padding-left:20px"><?php echo $msg["name"]?></td>
              </tr>
              <tr>
                <td width="20%" height="40" align="center">电话：</td>
                <td height="40" style="padding-left:20px"><?php echo $msg["phone"]?></td>
              </tr>
              <tr>
                <td height="40"  align="center">邮箱：</td>
                  <td height="40" style="padding-left:20px"><?php echo $msg["email"]?></td>
                </tr>
                <tr>
                    <td width="20%" height="40" align="center">内容：</td>
                      <td height="40" style="padding-left:20px"><?php echo $msg["content"]?></td>
                </tr>
                 <!--<tr >
                <td  height="30" align="center" colspan="2">[ <a href="javascript:window.close();">关闭窗口</a> ]</td>
              </tr> --> 
                </table>
        </div>
</body>
</html>

